package erlwitch.parser.structure;

import java.util.ArrayList;
import java.util.List;

public class Function extends Item {

	private int arity;
	private String name;
	private List<Invocation> invs = new ArrayList<Invocation>();
	
	public Function(int charFrom, int charTo, String name, int arity) {
		super(charFrom, charTo);
		this.name = name;
		this.arity = arity;
	}
	
	/**GETTERS AND SETTERS**/
	
	public int getArity() {
		return arity;
	}	
	public void setArity(int arity) {
		this.arity = arity;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public List<Invocation> getInvs() {
		return invs;
	}

	public void setInvs(List<Invocation> invs) {
		this.invs = invs;
	}

	public String getNameArity() {
		return name + "/" + arity;
	}
}
